package com.knight.study.patterns.tujie.builder;

/**
 * @Author knight
 * @Date 2024/9/10 16:57
 */

public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void construct() {
        builder.makeTitle("title");
        builder.makeString("string");
        builder.makeItems(new String[]{
                "mornning",
                "evening",
        });
        builder.makeString("string-2");
        builder.makeItems(new String[]{
                "1",
                "12",
                "13",
        });
        builder.close();
    }
}
